{% extends "admin_index.html" %}

{% block container %}
<div>
	<span><a href="/newspaper/admin/comment_save/?parent={{ parent.key }}&next={{ request.path }}" >添加</a></span>
	<span><a href="/newspaper/admin/list/" >返回</a></span>
</div>
<table style="width:100%;" >
	<thead>
		<tr>
			<th width="5%" >ID</th>
			<th width="65%" >评论</th>
			<th width="10%" >创建日期</th>
			<th width="20%">操作</th>
		</tr>
	</thead>
	<tbody>
	{% for obj in objs %}
		<tr>
			<td>{{ obj.key.id }}</td>
			<td>{{ obj.comment }}</td>
			<td>{{ obj.added|date:"Y-m-d" }}</td>
			<td>
				<div>
					<span><a href="/newspaper/admin/comment_save/{{ obj.key }}?next={{ request.path }}" >修改</a></span>
					<span><a href="/newspaper/admin/comment_delete/{{ obj.key }}?next={{ request.path }}" >删除</a></span>
				</div>
			</td>
		</tr>
	{% endfor %}
	</tbody>
</table>
{% endblock %}